package com.suse.jd_system_server.auto.mapper;

import com.suse.jd_system_server.entity.Authority;
import com.suse.jd_system_server.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface LoginMapper {
    User selectByname(String username);
    List<String> selectAuthority(Long userid);

    List<Authority> selectAuthorityList(Long role_id);

    List<Authority> selectallAuthority();

    void deleteau(@Param("param") Map param);

    void register(Map param);

    List<String> selectProvince();

    List<String> selectCity(@Param("cityName") String cityName);
}
